export class VideoModel{
  // id
  id: number =0
  // 标题
  title: string = ''
  // 视频地址
  videoUrl:string
  // 发布时间
  publishTime: string = ''
  // 浏览量
  views: number =0
  // 来源
  source: string = ''
  // 封面图片
  coverImageUrl: string = ''
  // 作者
  author: string = ''
  // 分类
  columnId: number =0
  // 标签
  tags: string = ''
  constructor(id?: number, title?: string,
              publishTime?: string, views?: number, source?: string,
              coverImageUrl?: string, author?: string, columnId?: number,
              tags?: string, videoUrl?:string) {
    this.id = id
    this.title = title
    this.publishTime = publishTime
    this.views = views
    this.source = source
    this.coverImageUrl = coverImageUrl
    this.author = author
    this.columnId = columnId
    this.tags = tags
    this.videoUrl=videoUrl
  }
}
export class NewInfo {
  // id
  id: number =0
  // 标题
  title: string = ''
  // 内容
  content: string = ''
  // 发布时间
  publishTime: string = ''
  // 浏览量
  views: number =0
  // 来源
  source: string = ''
  // 封面图片
  coverImageUrl: string = ''
  // 作者
  author: string = ''
  // 分类
  columnId: number =0
  // 标签
  tags: string = ''

  constructor(id?: number,
              title?: string,
              content?: string,
              publishTime?: string,
              views?: number,
              source?: string,
              coverImageUrl?: string,
              author?: string,
              columnId?: number,
              tags?: string) {
    this.id = id
    this.title = title
    this.content = content
    this.publishTime = publishTime
    this.views = views
    this.source = source
    this.coverImageUrl = coverImageUrl
    this.author = author
    this.columnId = columnId
    this.tags = tags
  }
}

export class TabItem {
  id:number
  columnName:string
  constructor(id?: number, columnName?: string) {
    this.id = id
    this.columnName = columnName
  }
}

export class SwiperItem {
  image: Resource
  title: string

  constructor(title: string, image: Resource) {
    this.title = title
    this.image = image
  }
}

